GoXam for WPF v3
ChangeModelValue Method (GraphLinksModel<NodeType,NodeKey,PortKey,LinkType>)
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class : ChangeModelValue Method
an edit describing the change to be performed
true if undoing; false if redoing
This is called during undo or redo to effect state changes to this model.
Syntax
protected override void ChangeModelValue( 
   ModelChangedEventArgs e,
   bool undo
)

Parameters

e
an edit describing the change to be performed
undo
true if undoing; false if redoing
Remarks

This is called by ChangeModel. You will want to override this method to handle properties that you have added to your derived model class.

By default this uses reflection to set the System.ComponentModel.PropertyChangedEventArgs.PropertyName to the ModelChangedEventArgs.OldValue or the ModelChangedEventArgs.NewValue, depending on the value of undo.

If you override this method, remember to call the base method for all cases that your override method does not handle.

See Also

Reference

GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class
GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Members